package ru.spbu.math.seabattle.entity;

import java.io.Serializable;

public class GameResult implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private final PlayerID winner;
	private final PlayerID loser;

	private final String winnerName;
	private final String loserName;
	
	public GameResult(PlayerID winner, PlayerID loser, String winnerName, String loserName) {
		this.winner = winner;
		this.loser = loser;
		this.winnerName = winnerName;
		this.loserName = loserName;
	}

	public PlayerID getWinnerId() {
		return winner;
	}

	public PlayerID getLoserId() {
		return loser;
	}
	
	public String getWinnerName() {
		return winnerName;
	}
	
	public String getLoserName() {
		return loserName;
	}
}
